package com.alibaba.algo.core.exception;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2019/11/8 11:22 下午
 */
public class BaseException extends RuntimeException {
    /**
     * 错误码
     */
    private Integer errorCode;
    /**
     * 错误动态参数
     */
    private String errorMsg;

    public BaseException(Integer errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public BaseException(Integer errorCode, String args) {
        super();
        this.errorCode = errorCode;
        this.errorMsg = args;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}